package GuiClasses;
/**
 * TCSS 360 - Project
 */

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JPanel;

/**
 * The SpiritBeastPanel holds the image that will be displayed in the lower right of the BeWeaveFrame
 *  
 *  @author Abraham Santini
 */
public class SpiritBeastPanel extends JPanel{
	/**
	 * The image that will be displayed in the upper left of the BeWeaveFrame.
	 */
	BufferedImage my_logo;
	
	/**
	 * Public constuctor for the SpiritBeastPanel.
	 */
	public SpiritBeastPanel(){
		
		try {
			my_logo = ImageIO.read(new File("Logo.jpg"));
		} catch (IOException e) {
			System.out.println(e);
		}
	
		this.setPreferredSize(new Dimension(my_logo.getWidth(), my_logo.getHeight()));
	}
	
	public void paint(Graphics g) {
		g.drawImage(my_logo, 0,0, null);
	}

}
